﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Default.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="LimpaGaragem.Web.Pages.Users.Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/functions.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="upRegister" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="Register" align="center">
                <div class="GlobalHeadLogo">
                    <img src="../../Images/Pages/Register/RegLogo.png" alt="Register-Logo" width="80px"
                        height="75px" id="logoReg" />
                </div>
                <div class="GlobalHeadTitle">
                    <h1>
                        Cadastro Limpa Garagem</h1>
                </div>
                <br />
                <br />
                <br />
                <br />
                <table class="tableRegister">
                    <tr>
                        <td colspan="5" class="tableDescription" align="center">
                            Informações de Login
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="tableData">
                            Nome de Usuário<br />
                            <asp:TextBox class="txtBox" ID="txtLoginUser" runat="server" MaxLength="20"></asp:TextBox>
                        </td>
                        <td colspan="3">
                    
                              <p class="info">*Seu login para entrar no site</p>
                        </td>
                        <tr>
                        </tr>
                        <td colspan="2" class="tableData">
                            Senha<br />
                            <asp:TextBox class="txtBox" ID="txtPwUser" runat="server" MaxLength="12" TextMode="Password"></asp:TextBox>
                        </td>
                        <td colspan="3">
                             <p class="info">
                                *Sua senha (somente letras e números)</p>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" class="tableDescription" align="center">
                            Informações Pessoais
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" class="tableData">
                            Nome<br />
                            <asp:TextBox class="txtBox" ID="txtName" runat="server" Width="280" MaxLength="100"></asp:TextBox>
                        </td>
                        <td colspan="2" class="tableData">
                            Data Nascimento<br />
                            <asp:TextBox class="txtBox" ID="txtBirthDate" runat="server" Width="100" MaxLength="10" onkeypress="MaskDate(this);" onblur="ValidateDate(this);"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" class="tableData">
                            Email<br />
                            <asp:TextBox class="txtBox" ID="txtEmail" runat="server" Width="280" MaxLength="200" onblur="ValidateEmail(this);"></asp:TextBox>
                        </td>
                        <td colspan="2" class="tableData">
                            CPF<br />
                            <asp:TextBox class="txtBox" ID="txtCPF" runat="server" MaxLength="14" onkeypress="MaskCPF(this);" onblur="ValidateCPF(this);"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tableData">
                            Telefone<br />
                            <asp:TextBox class="txtBox" ID="txtPhone" runat="server" Width="110px" MaxLength="20" onkeypress="return ValidatePhone(event);"></asp:TextBox>
                        </td>
                        <td class="tableData">
                            Celular<br />
                            <asp:TextBox class="txtBox" ID="txtCellPhone" runat="server" Width="110px" MaxLength="20" onkeypress="return ValidatePhone(event);"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" class="tableData">
                            Endereço<br />
                            <asp:TextBox class="txtBox" ID="txtAdress" runat="server" Width="280" MaxLength="200"></asp:TextBox>
                        </td>
                        <td class="tableData">
                            Número<br />
                            <asp:TextBox class="txtBox" ID="txtAdressNumber" runat="server" Width="85px" MaxLength="10" onkeypress="return OnlyNumbers(event)"></asp:TextBox>
                        </td>
                        <td class="tableData">
                            Complemento<br />
                            <asp:TextBox class="txtBox" ID="txtAdditAdress" runat="server" Width="90px" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tableData" colspan="3">
                            CEP<br />
                            <asp:TextBox class="txtBox" ID="txtPostalCode" runat="server" Width="110px" MaxLength="9" onkeypress="MaskCEP(this);" onblur="ValidateCEP(this);"></asp:TextBox>
                        </td>
                        <td colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td class="tableData">
                            Estado<br />
                            <asp:DropDownList class="ddlBox" ID="ddlState" runat="server" Width="110px" AutoPostBack="true" OnSelectedIndexChanged="ddlState_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2" class="tableData">
                            Cidade<br />
                            <asp:DropDownList class="ddlBox" ID="ddlCity" runat="server" Width="160px">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td class="tableData">
                            Mostrar dados de contato<br />
                            <asp:CheckBox ID="chkShowContactInfo" runat="server" Checked="true"/>
                        </td>
                        <td colspan="2" class="tableData">
                        </td>
                        <td colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <br />
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" align="center" class="tableData">
                            <asp:Button class="Button" ID="btnRegister" runat="server" Text="Cadastrar" OnClick="btnRegister_Click"/>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
